import UserType from "./userType";
import Permission from "./permission";

let SideBarItem = {};

SideBarItem.items = [
    {
        icon: "el-icon-fa fa-bar-chart",
        index: "/student",
        title: "学生首页",
        userType: UserType.student,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-book",
        index: "/student/course/select",
        title: "选修课程",
        userType: UserType.student,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-edit",
        index: "/student/course",
        title: "学生课程",
        userType: UserType.student,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-table",
        index: "/student/timetable",
        title: "课表查询",
        userType: UserType.student,
        permission: Permission.no
    },
    // {
    //   icon: "el-icon-fa fa-eye",
    //   index: "/student/exam",
    //   title: "考试查询",
    //   userType: UserType.student,
    //   permission: Permission.no
    // },
    {
        icon: "el-icon-fa fa-newspaper-o",
        index: "/student/score",
        title: "成绩查询",
        userType: UserType.student,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-id-badge",
        index: "/student/info",
        title: "信息维护",
        userType: UserType.student,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-bar-chart",
        index: "/teacher",
        title: "教师首页",
        userType: UserType.teacher,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-book",
        index: "/teacher/course",
        title: "授课查询",
        userType: UserType.teacher,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-table",
        index: "/teacher/timetable",
        title: "教师课表",
        userType: UserType.teacher,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-edit",
        index: "/teacher/grade",
        title: "成绩录入",
        userType: UserType.teacher,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-bar-chart",
        index: "/admin",
        title: "管理员首页",
        userType: UserType.admin,
        permission: Permission.no
    },
    {
        icon: "el-icon-fa fa-fort-awesome",
        index: "/admin/department",
        title: "系管理",
        userType: UserType.admin,
        permission: Permission.department
    },
    {
        icon: "el-icon-fa fa-graduation-cap",
        index: "/admin/major",
        title: "专业管理",
        userType: UserType.admin,
        permission: Permission.major
    },
    {
        icon: "el-icon-fa fa-group",
        index: "/admin/class",
        title: "班级管理",
        userType: UserType.admin,
        permission: Permission.class
    },
    {
        icon: "el-icon-fa fa-user",
        index: "/admin/student",
        title: "学生管理",
        userType: UserType.admin,
        permission: Permission.student
    },
    {
        icon: "el-icon-fa fa-user-plus",
        index: "/admin/teacher",
        title: "教师管理",
        userType: UserType.admin,
        permission: Permission.teacher
    },
    {
        icon: "el-icon-fa fa-book",
        index: "/admin/course",
        title: "课程管理",
        userType: UserType.admin,
        permission: Permission.course
    },
    {
        icon: "el-icon-fa fa-edit",
        index: "/admin/student/course",
        title: "选课修改",
        userType: UserType.admin,
        permission: Permission.studentCourse
    },
    {
        icon: "el-icon-fa fa-id-badge",
        index: "/admin/admin",
        title: "管理员管理",
        userType: UserType.admin,
        permission: Permission.admin
    }
];

export default SideBarItem;
